/* 
 * Since 2008 - 2012
 */
package com.hh.bss.customer.vo.query;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.customer.dao.*;
import com.hh.bss.customer.entity.*;
import com.hh.bss.customer.service.*;
import com.hh.bss.customer.vo.query.*;
import com.hh.bss.util.*;





public class CustomerContractQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Integer id;
	/** 客户id */
	private java.lang.Integer custId;
	/** 合同格式 */
	private java.lang.String contractStyle;
	/** 合同类型 */
	private java.lang.Integer contractType;
	/** 合同语种 */
	private java.lang.String lang;
	/** 合同费率 */
	private java.lang.Long arRate;
	/** 最低收费 */
	private java.lang.Long minAr;
	/** 合同开始日期 */
	private java.util.Date beginD;
	/** 合同结束日期 */
	private java.util.Date endD;
	/** 付款时间 */
	private java.util.Date arDBegin;
	private java.util.Date arDEnd;
	/** 预付款 */
	private java.lang.Long preAr;
	/** 预付款时间 */
	private java.util.Date preArDBegin;
	private java.util.Date preArDEnd;
	/** 预付款单位 */
	private java.lang.String preUnit;
	/** 保证期(试用期)(月) */
	private Integer trialMonths;
	/** 退款比例 */
	private java.lang.Long refundRate;
	/** 滞纳金比例 */
	private java.lang.Long delayRate;
	/** 其他特别条款 */
	private java.lang.String searchLimit;
	/** 其他备注 */
	private java.lang.String comment;
	/** creator */
	private java.lang.String creator;
	/** createDt */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;
	/** modifier */
	private java.lang.String modifier;
	/** modifiedDt */
	private java.util.Date modifiedDtBegin;
	private java.util.Date modifiedDtEnd;
	private String nbr;
	private String custName;
	private String title;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getNbr() {
		return nbr;
	}

	public void setNbr(String nbr) {
		this.nbr = nbr;
	}

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getCustId() {
		return this.custId;
	}
	
	public void setCustId(java.lang.Integer value) {
		this.custId = value;
	}
	
	public java.lang.String getContractStyle() {
		return this.contractStyle;
	}
	
	public void setContractStyle(java.lang.String value) {
		this.contractStyle = value;
	}
	
	public java.lang.Integer getContractType() {
		return this.contractType;
	}
	
	public void setContractType(java.lang.Integer value) {
		this.contractType = value;
	}
	
	public java.lang.String getLang() {
		return this.lang;
	}
	
	public void setLang(java.lang.String value) {
		this.lang = value;
	}
	
	public java.lang.Long getArRate() {
		return this.arRate;
	}
	
	public void setArRate(java.lang.Long value) {
		this.arRate = value;
	}
	
	public java.lang.Long getMinAr() {
		return this.minAr;
	}
	
	public void setMinAr(java.lang.Long value) {
		this.minAr = value;
	}
	
	public java.util.Date getBeginD() {
		return this.beginD;
	}
	
	public void setBeginD(java.util.Date value) {
		this.beginD = value;
	}
	
	public java.util.Date getEndD() {
		return this.endD;
	}
	
	public void setEndD(java.util.Date value) {
		this.endD = value;
	}
	
	public java.util.Date getArDBegin() {
		return this.arDBegin;
	}
	
	public void setArDBegin(java.util.Date value) {
		this.arDBegin = value;
	}	
	
	public java.util.Date getArDEnd() {
		return this.arDEnd;
	}
	
	public void setArDEnd(java.util.Date value) {
		this.arDEnd = value;
	}
	
	public java.lang.Long getPreAr() {
		return this.preAr;
	}
	
	public void setPreAr(java.lang.Long value) {
		this.preAr = value;
	}
	
	public java.util.Date getPreArDBegin() {
		return this.preArDBegin;
	}
	
	public void setPreArDBegin(java.util.Date value) {
		this.preArDBegin = value;
	}	
	
	public java.util.Date getPreArDEnd() {
		return this.preArDEnd;
	}
	
	public void setPreArDEnd(java.util.Date value) {
		this.preArDEnd = value;
	}
	
	public java.lang.String getPreUnit() {
		return this.preUnit;
	}
	
	public void setPreUnit(java.lang.String value) {
		this.preUnit = value;
	}
	
	public Integer getTrialMonths() {
		return this.trialMonths;
	}
	
	public void setTrialMonths(Integer value) {
		this.trialMonths = value;
	}
	
	public java.lang.Long getRefundRate() {
		return this.refundRate;
	}
	
	public void setRefundRate(java.lang.Long value) {
		this.refundRate = value;
	}
	
	public java.lang.Long getDelayRate() {
		return this.delayRate;
	}
	
	public void setDelayRate(java.lang.Long value) {
		this.delayRate = value;
	}
	
	public java.lang.String getSearchLimit() {
		return this.searchLimit;
	}
	
	public void setSearchLimit(java.lang.String value) {
		this.searchLimit = value;
	}
	
	public java.lang.String getComment() {
		return this.comment;
	}
	
	public void setComment(java.lang.String value) {
		this.comment = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}
	
	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}	
	
	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}
	
	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.util.Date getModifiedDtBegin() {
		return this.modifiedDtBegin;
	}
	
	public void setModifiedDtBegin(java.util.Date value) {
		this.modifiedDtBegin = value;
	}	
	
	public java.util.Date getModifiedDtEnd() {
		return this.modifiedDtEnd;
	}
	
	public void setModifiedDtEnd(java.util.Date value) {
		this.modifiedDtEnd = value;
	}
	
	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
        private String sort;
	private String dir;

        public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		
		this.sort = sort;
		if (!StringHelper.isEmpty(sort)&&!StringHelper.isEmpty(dir))
		  this.setSortColumns(sort+" "+dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}

